﻿@namespace BootstrapBlazor.Components
@inherits IdComponentBase

<CascadingValue Value="@this" IsFixed>
    <CascadingValue Value="@_dropdownState">
        @if ( _dropdownState.IsHorizontal && !IsDropdownSubmenu )
        {
            @ChildContent
        }
        else
        {
            <div @attributes="@AdditionalAttributes" id="@Id" class="@ClassString" data-visible="@VisibleString">
                @ChildContent
            </div>
        }
    </CascadingValue>
</CascadingValue>
